package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.EXAM01.TASK1;

import java.util.Scanner;

public class Rhombus_Views {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("+input diagonal1: ");
		double diagonal1 = in.nextDouble();
		System.out.println("+input diagonal2: ");
		double diagonal2 = in.nextDouble();
		System.out.println("+input side: ");
		double side = in.nextDouble();

		Object obj = new Rhombus_Entity();
		Rhombus_Entity Obj = (Rhombus_Entity)obj ;
		Obj.setDiagonal1(diagonal1); Obj.setDiagonal2(diagonal2);
		Obj.setSide(side);

		Rhombus_Controllers cObj = new Rhombus_Controllers(Obj);
		System.out.printf("+Area: %8.2f \n", cObj.getArea(Obj));
		System.out.printf("+Perimeter: %8.2f \n",cObj.getPerimeter(Obj));
	}

	}

